Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(otlp-transformer)!: introduce separate entry-points for OTLP serializers #5263

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pichlermarc
Copy link
Member

@pichlermarc pichlermarc commented Dec 13, 2024

Which problem is this PR solving?

This is the second-to-last breaking PR for @opentelemetry/otlp-transformer before marking the package as stable (#4582). This solves some issues with rollup, that warns even for code that is dead in the end-user's app. See #5096, #4987.

This PR adds entry points for each signal, each signal gets an entry point for protobuf and json to address #5096 and #4987

The new entrypoint structure is:
- /signal, /signal/protobuf, signal/json
- experimental signals are prefixed by experimental/ to allow us marking the package stable before the experimental signals are - the spec moves quicker than we do, so I expect there to always be one that is not stable

Closes #5216
Closes #4584
Fixes #5096
Partially addresses #4987

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • Unit tests

@pichlermarc pichlermarc force-pushed the feat/add-transformer-entrypoints branch from ec2720d to 176b776 Compare December 13, 2024 12:45
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.63%. Comparing base (8dc74e6) to head (ae149d1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5263   +/-   ##
=======================================
  Coverage   94.63%   94.63%           
=======================================
  Files         323      323           
  Lines        8083     8083           
  Branches     1643     1643           
=======================================
  Hits         7649     7649           
  Misses        434      434           
Files with missing lines Coverage Δ
...ges/exporter-logs-otlp-grpc/src/OTLPLogExporter.ts 100.00% <100.00%> (ø)
...ogs-otlp-http/src/platform/node/OTLPLogExporter.ts 100.00% <100.00%> (ø)
...gs-otlp-proto/src/platform/node/OTLPLogExporter.ts 100.00% <100.00%> (ø)
.../exporter-trace-otlp-grpc/src/OTLPTraceExporter.ts 100.00% <100.00%> (ø)
...e-otlp-http/src/platform/node/OTLPTraceExporter.ts 100.00% <100.00%> (ø)
...-otlp-proto/src/platform/node/OTLPTraceExporter.ts 100.00% <100.00%> (ø)
...porter-metrics-otlp-grpc/src/OTLPMetricExporter.ts 100.00% <100.00%> (ø)
...-otlp-http/src/platform/node/OTLPMetricExporter.ts 100.00% <100.00%> (ø)
...orter-metrics-otlp-proto/src/OTLPMetricExporter.ts 100.00% <100.00%> (ø)

@pichlermarc pichlermarc force-pushed the feat/add-transformer-entrypoints branch from 176b776 to 2e74b8a Compare December 13, 2024 13:03
@pichlermarc pichlermarc changed the title feat(otlp-transformer)!: introduce separate entry-points for OTLP serializers, switch to factory functions feat(otlp-transformer)!: introduce separate entry-points for OTLP serializers Dec 13, 2024
@pichlermarc pichlermarc force-pushed the feat/add-transformer-entrypoints branch 2 times, most recently from 2a53f1b to 8c1c6be Compare December 13, 2024 13:23
@pichlermarc pichlermarc force-pushed the feat/add-transformer-entrypoints branch from 8c1c6be to 7aca149 Compare December 13, 2024 16:27
@pichlermarc pichlermarc added this to the OTLP Exporter GA milestone Dec 13, 2024
@pichlermarc pichlermarc marked this pull request as ready for review December 13, 2024 16:35
@pichlermarc pichlermarc requested a review from a team as a code owner December 13, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants